.class public Lcom/xingbook/park/view/k;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/media/MediaRecorder$OnErrorListener;
.implements Landroid/media/MediaRecorder$OnInfoListener;
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/media/MediaRecorder;

.field private b:Landroid/content/Context;

.field private c:Lcom/xingbook/park/ui/ac;

.field private d:Lcom/xingbook/park/ui/ab;

.field private e:Landroid/widget/Button;

.field private f:Landroid/widget/ImageView;

.field private g:Landroid/graphics/drawable/AnimationDrawable;

.field private h:Lcom/xingbook/d/d;

.field private i:Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Z

.field private l:Lcom/xingbook/c/e;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/view/ViewGroup;)V
    .locals 6

    const/4 v5, 0x4

    const/4 v4, 0x0

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object v1, p0, Lcom/xingbook/park/view/k;->c:Lcom/xingbook/park/ui/ac;

    iput-object v1, p0, Lcom/xingbook/park/view/k;->d:Lcom/xingbook/park/ui/ab;

    iput-boolean v4, p0, Lcom/xingbook/park/view/k;->k:Z

    iput-object p1, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    move-object v0, p1

    check-cast v0, Lcom/xingbook/park/activity/ReadingAct;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/ReadingAct;->d()Lcom/xingbook/c/e;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/view/k;->l:Lcom/xingbook/c/e;

    :try_start_0
    new-instance v0, Landroid/media/MediaRecorder;

    invoke-direct {v0}, Landroid/media/MediaRecorder;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;
    :try_end_0
    .catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    new-instance v0, Landroid/widget/Button;

    invoke-direct {v0, p1}, Landroid/widget/Button;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const-string v1, "record"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const v1, 0x7f0202d4

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    iget-object v1, p0, Lcom/xingbook/park/view/k;->l:Lcom/xingbook/c/e;

    invoke-virtual {v1}, Lcom/xingbook/c/e;->c()I

    move-result v1

    add-int/lit8 v1, v1, -0x6e

    iget-object v2, p0, Lcom/xingbook/park/view/k;->l:Lcom/xingbook/c/e;

    invoke-virtual {v2}, Lcom/xingbook/c/e;->c()I

    move-result v2

    const/16 v3, 0x6e

    invoke-virtual {v0, v1, v4, v2, v3}, Landroid/widget/Button;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    invoke-virtual {v0, p0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    iget-object v1, p0, Lcom/xingbook/park/view/k;->l:Lcom/xingbook/c/e;

    invoke-virtual {v1}, Lcom/xingbook/c/e;->c()I

    move-result v1

    add-int/lit16 v1, v1, -0xb7

    const/16 v2, 0x29

    iget-object v3, p0, Lcom/xingbook/park/view/k;->l:Lcom/xingbook/c/e;

    invoke-virtual {v3}, Lcom/xingbook/c/e;->c()I

    move-result v3

    add-int/lit8 v3, v3, -0x73

    const/16 v4, 0x45

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/ImageView;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, v5}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    const v1, 0x7f02012d

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    check-cast v0, Landroid/graphics/drawable/AnimationDrawable;

    iput-object v0, p0, Lcom/xingbook/park/view/k;->g:Landroid/graphics/drawable/AnimationDrawable;

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    invoke-virtual {p2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    check-cast p2, Lcom/xingbook/d/d;

    iput-object p2, p0, Lcom/xingbook/park/view/k;->h:Lcom/xingbook/d/d;

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/RuntimeException;->printStackTrace()V

    iput-object v1, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    goto/16 :goto_0
.end method

.method private a(I)V
    .locals 3

    invoke-virtual {p0}, Lcom/xingbook/park/view/k;->c()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->c:Lcom/xingbook/park/ui/ac;

    if-nez v0, :cond_0

    new-instance v0, Lcom/xingbook/park/ui/ac;

    iget-object v1, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    const v2, 0x7f090007

    invoke-direct {v0, v1, v2}, Lcom/xingbook/park/ui/ac;-><init>(Landroid/content/Context;I)V

    iput-object v0, p0, Lcom/xingbook/park/view/k;->c:Lcom/xingbook/park/ui/ac;

    :cond_0
    if-lez p1, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/view/k;->c:Lcom/xingbook/park/ui/ac;

    invoke-virtual {v0, p1}, Lcom/xingbook/park/ui/ac;->a(I)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/view/k;->c:Lcom/xingbook/park/ui/ac;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/ac;->show()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/xingbook/park/view/k;->c:Lcom/xingbook/park/ui/ac;

    const-string v1, "\u5bf9\u4e0d\u8d77\uff0c\u6682\u4e0d\u652f\u6301\u5f55\u97f3\uff01"

    invoke-virtual {v0, v1}, Lcom/xingbook/park/ui/ac;->a(Ljava/lang/String;)V

    goto :goto_0
.end method

.method private d()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    if-nez v0, :cond_0

    const/4 v0, -0x1

    invoke-direct {p0, v0}, Lcom/xingbook/park/view/k;->a(I)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/park/view/k;->k:Z

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->g:Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->start()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const-string v1, "stop"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const v1, 0x7f0202d3

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    iget-object v1, p0, Lcom/xingbook/park/view/k;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/media/MediaRecorder;->setOutputFile(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    invoke-virtual {v0}, Landroid/media/MediaRecorder;->prepare()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    invoke-virtual {v0}, Landroid/media/MediaRecorder;->start()V
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/IllegalStateException;->printStackTrace()V

    goto :goto_0

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0
.end method

.method private e()V
    .locals 3

    const/4 v1, 0x1

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/view/k;->k:Z

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    invoke-virtual {v0}, Landroid/media/MediaRecorder;->reset()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    invoke-virtual {v0, v1}, Landroid/media/MediaRecorder;->setAudioSource(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    invoke-virtual {v0, v1}, Landroid/media/MediaRecorder;->setOutputFormat(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    invoke-virtual {v0, v1}, Landroid/media/MediaRecorder;->setAudioEncoder(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    const v1, 0x1b7740

    invoke-virtual {v0, v1}, Landroid/media/MediaRecorder;->setMaxDuration(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    const-wide/32 v1, 0xa00000

    invoke-virtual {v0, v1, v2}, Landroid/media/MediaRecorder;->setMaxFileSize(J)V

    goto :goto_0
.end method

.method private f()V
    .locals 4

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    if-nez v0, :cond_0

    const/4 v0, -0x1

    invoke-direct {p0, v0}, Lcom/xingbook/park/view/k;->a(I)V

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0}, Lcom/xingbook/park/view/k;->e()V

    new-instance v0, Ljava/lang/StringBuilder;

    sget-object v1, Lcom/xingbook/c/c;->L:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/xingbook/park/view/k;->j:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/view/k;->h:Lcom/xingbook/d/d;

    invoke-interface {v1}, Lcom/xingbook/d/d;->getCurrentPage()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ".mp4"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/park/view/k;->i:Ljava/lang/String;

    invoke-static {}, Lcom/xingbook/c/u;->a()J

    move-result-wide v0

    const-wide/32 v2, 0x300000

    cmp-long v0, v0, v2

    if-gez v0, :cond_1

    const v0, 0x7f08001b

    invoke-direct {p0, v0}, Lcom/xingbook/park/view/k;->a(I)V

    goto :goto_0

    :cond_1
    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/xingbook/park/view/k;->i:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/view/k;->d:Lcom/xingbook/park/ui/ab;

    if-nez v0, :cond_2

    new-instance v0, Lcom/xingbook/park/ui/ab;

    iget-object v1, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    invoke-direct {v0, v1, p0}, Lcom/xingbook/park/ui/ab;-><init>(Landroid/content/Context;Landroid/view/View$OnClickListener;)V

    iput-object v0, p0, Lcom/xingbook/park/view/k;->d:Lcom/xingbook/park/ui/ab;

    :cond_2
    iget-object v0, p0, Lcom/xingbook/park/view/k;->d:Lcom/xingbook/park/ui/ab;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/ab;->show()V

    goto :goto_0

    :cond_3
    invoke-direct {p0}, Lcom/xingbook/park/view/k;->d()V

    goto :goto_0
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    invoke-virtual {v0}, Landroid/widget/Button;->bringToFront()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->bringToFront()V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/park/view/k;->j:Ljava/lang/String;

    return-void
.end method

.method public a(Z)V
    .locals 2

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_0
.end method

.method public b()V
    .locals 5

    iget-object v1, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    iget-object v0, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    check-cast v0, Lcom/xingbook/park/activity/ReadingAct;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/ReadingAct;->d()Lcom/xingbook/c/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/e;->c()I

    move-result v0

    add-int/lit8 v2, v0, -0x6e

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    check-cast v0, Lcom/xingbook/park/activity/ReadingAct;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/ReadingAct;->d()Lcom/xingbook/c/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/e;->c()I

    move-result v0

    const/16 v4, 0x6e

    invoke-virtual {v1, v2, v3, v0, v4}, Landroid/widget/Button;->layout(IIII)V

    iget-object v1, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    check-cast v0, Lcom/xingbook/park/activity/ReadingAct;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/ReadingAct;->d()Lcom/xingbook/c/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/e;->c()I

    move-result v0

    add-int/lit16 v2, v0, -0xb7

    const/16 v3, 0x29

    iget-object v0, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    check-cast v0, Lcom/xingbook/park/activity/ReadingAct;

    invoke-virtual {v0}, Lcom/xingbook/park/activity/ReadingAct;->d()Lcom/xingbook/c/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/e;->c()I

    move-result v0

    add-int/lit8 v0, v0, -0x73

    const/16 v4, 0x45

    invoke-virtual {v1, v2, v3, v0, v4}, Landroid/widget/ImageView;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    invoke-virtual {v0}, Landroid/widget/Button;->postInvalidate()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->postInvalidate()V

    invoke-virtual {p0}, Lcom/xingbook/park/view/k;->a()V

    return-void
.end method

.method public c()V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-boolean v0, p0, Lcom/xingbook/park/view/k;->k:Z

    if-eqz v0, :cond_0

    iput-boolean v2, p0, Lcom/xingbook/park/view/k;->k:Z

    :try_start_0
    iget-object v0, p0, Lcom/xingbook/park/view/k;->a:Landroid/media/MediaRecorder;

    invoke-virtual {v0}, Landroid/media/MediaRecorder;->stop()V
    :try_end_0
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    iget-object v0, p0, Lcom/xingbook/park/view/k;->g:Landroid/graphics/drawable/AnimationDrawable;

    invoke-virtual {v0}, Landroid/graphics/drawable/AnimationDrawable;->stop()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->f:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const v1, 0x7f0202d4

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->e:Landroid/widget/Button;

    const-string v1, "record"

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setTag(Ljava/lang/Object;)V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->b:Landroid/content/Context;

    const v1, 0x7f0800c8

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/IllegalStateException;->printStackTrace()V

    goto :goto_1
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-static {}, Lcom/xingbook/c/a;->a()Lcom/xingbook/c/a;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/c/a;->a(I)V

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a01f6

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/view/k;->d:Lcom/xingbook/park/ui/ab;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/ab;->dismiss()V

    invoke-direct {p0}, Lcom/xingbook/park/view/k;->d()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a01f7

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/view/k;->d:Lcom/xingbook/park/ui/ab;

    invoke-virtual {v0}, Lcom/xingbook/park/ui/ab;->dismiss()V

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    const-string v1, "record"

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/view/k;->h:Lcom/xingbook/d/d;

    invoke-interface {v0}, Lcom/xingbook/d/d;->h()V

    invoke-direct {p0}, Lcom/xingbook/park/view/k;->f()V

    goto :goto_0

    :cond_3
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    const-string v1, "stop"

    invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/park/view/k;->c()V

    iget-object v0, p0, Lcom/xingbook/park/view/k;->h:Lcom/xingbook/d/d;

    invoke-interface {v0}, Lcom/xingbook/d/d;->a()V

    goto :goto_0
.end method

.method public onError(Landroid/media/MediaRecorder;II)V
    .locals 2

    const v1, 0x7f08002b

    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    invoke-direct {p0, v1}, Lcom/xingbook/park/view/k;->a(I)V

    :goto_0
    return-void

    :cond_0
    invoke-direct {p0, v1}, Lcom/xingbook/park/view/k;->a(I)V

    goto :goto_0
.end method

.method public onInfo(Landroid/media/MediaRecorder;II)V
    .locals 2

    const v1, 0x7f08002b

    const/16 v0, 0x320

    if-ne p2, v0, :cond_0

    invoke-direct {p0, v1}, Lcom/xingbook/park/view/k;->a(I)V

    :goto_0
    return-void

    :cond_0
    const/16 v0, 0x321

    if-ne p2, v0, :cond_1

    invoke-direct {p0, v1}, Lcom/xingbook/park/view/k;->a(I)V

    goto :goto_0

    :cond_1
    invoke-direct {p0, v1}, Lcom/xingbook/park/view/k;->a(I)V

    goto :goto_0
.end method
